package com.bite.mybatis.mapper;

import com.bite.mybatis.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapperXML {
    List<UserInfo> selectAll();

    UserInfo selectById(Integer id);

    Integer insertUserInfo( UserInfo userInfo);

    Integer insertUserInfo2(String username, String password, Integer age);

    Integer updateUserInfo(@Param("userinfo")UserInfo userinfo);

    Integer deleteUser(Integer id);
}
